package day9;

import day5.Student;

import java.util.Arrays;

/**
 * @author oldliu
 * @since 1.0
 */
public class ClsTest {
    public static void main(String[] args) {
        Class c=String.class;
        Class c2= Student.class;
        Class c3=int.class;
        //对象的getClass方法
        Student d=new Student();
        Class c5=d.getClass();
        System.out.println(c2==c5);
        System.out.println("c2："+c2.getName());
        System.out.println("父类:"+c2.getSuperclass().getName());
        Class[] interfaces = c2.getInterfaces();
        System.out.println(Arrays.toString(interfaces));
    }
}
